<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>session_two</title>
</head>
<body>
	<h1>session_two.jsp</h1>
	<%
		String name = (String) session.getAttribute("name");
		String password = (String) session.getAttribute("password");
	%>
	<h2>
		name=<%=name%></h2>
	<h2>
		password=<%=password%></h2>

	<a href="session_three.jsp">session_three</a>

	<h2>
		sessionID:
		<%=session.getId()%></h2>

	<%
		out.println("serverInfo :" + application.getServerInfo());
		String app = (String) application.getAttribute("app1");
		out.println("<br>");
		out.println("获取application对象值 ："+app);
	%>
</body>
</html>